home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / tools / developer-tools / c-tools / c_examples / msgprompt / msgprompt_example.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-19  |  1.0 KB  |  41 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. // MsgPrompt Example
  3. // 5.19.96 Deryk Robosson
  4.  
  5. //////////////////////////////////////////////////////////////////////////////
  6. // Includes
  7. #include "aframe:include/amigaapp.hpp"
  8. #include "aframe:include/window.hpp"
  9. #include "aframe:include/rect.hpp"
  10. #include "aframe:include/reqtools.hpp"
  11. #include "aframe:include/msgprompt.hpp"
  12.  
  13. //////////////////////////////////////////////////////////////////////////////
  14. // ControlWindow Class Definition
  15.  
  16. class ControlWindow : public AFWindow
  17. {
  18. public:
  19.     AFMsgPrompt mp;
  20.     AFReqTools rt;
  21. };
  22.  
  23. //////////////////////////////////////////////////////////////////////////////
  24. // ControlWindow Implementation routines
  25.  
  26. //////////////////////////////////////////////////////////////////////////////
  27. // MAIN
  28.  
  29. void main()
  30. {
  31.     AFAmigaApp theApp;
  32.     ControlWindow win;
  33.     AFRect rect(10,10,100,100);
  34.  
  35.     win.Create(&theApp,&rect,"AFrame MsgPrompt Example");
  36.  
  37.     win.mp.Prompt(&win,"The is a simple prompt","MsgPrompt Example",NULL);
  38.  
  39.     theApp.RunApp();
  40. }
  41.